#include "Card.h"

void print_hex(char *);

int main(void)
{
    Card c = {0};
    char dump[sizeof(Card) + 1] = {0};
    for(int i = 0; i < 10; ++i)
    {
        Card_fill(&c);
        Card_dump(&c, dump);
        print_hex(dump);
    }
    return 0;
}

void print_hex(char *dump)
{
    char *c = dump;
    for(size_t i = 0; i < sizeof(Card); ++i)
        printf("%02X ", (unsigned char) c[i]);
    printf("\n\n");
}
